<template>
  <div>
    <ant-card>
      <template #content>
        <div class="DocumentFlow">公文流转统计</div>
        <base-bar :sourceData="sourceData" :alias="alias" />
      </template>
    </ant-card>
    <ant-card style="margin-top:20px;">
      <template #content>
        <home-component />
      </template>
    </ant-card>
  </div>
</template>
<script lang="ts">
const AntCard = () => import("../../components/Card.vue");
const BaseBar = () => import("../../components/Chart/BaseBar/index.vue");
const HomeComponent = () => import("./HomeComponent/index.vue");
import { Component, Vue } from "vue-property-decorator";

@Component({
  name: "doc-home",
  layout: "menu",
  components: {
    BaseBar,
    AntCard,
    HomeComponent
  }
})
export default class DocHome extends Vue {
  alias: string = "值";
  sourceData: any[] = [
    { label: "发布公文数量", value: 100 },
    { label: "审批次数", value: 50 },
    { label: "次数流转", value: 30 }
  ];
}
</script>
<style lang="less" scoped>
.DocumentFlow {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 30px;
}
</style>
